package 迭代器;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class ComputerCollege implements College{

    List  departments = new ArrayList<DepartMent>(); // 个数怎么弄

    public ComputerCollege() {
        departments.add(new DepartMent("软件工程"));
        departments.add(new DepartMent("计算机科学与技术"));
    }

    @Override
    public String CollegeName() {
        return "计算机系";
    }

    @Override
    public Iterator getCollegeIterator() {
        return  new ComputerCollegeIterator(departments);
    }

}
